Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kolorist

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kolorist

A tiny utility to colorize stdin/stdout

  • 1.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6M
decreased by-16.91%
Maintainers
1
Weekly downloads
 
Created

What is kolorist?

Kolorist is an npm package that provides utilities for styling terminal strings with colors and other text attributes. It is designed to be lightweight and easy to use, making it a great choice for adding visual enhancements to command-line applications.

What are kolorist's main functionalities?

Basic Color Styling

Kolorist allows you to style text with basic colors. The example demonstrates how to use red, green, and blue colors to style terminal output.

const { red, green, blue } = require('kolorist');
console.log(red('This is red text'));
console.log(green('This is green text'));
console.log(blue('This is blue text'));

Background Colors

Kolorist also supports background colors. The example shows how to apply red, green, and blue background colors to text.

const { bgRed, bgGreen, bgBlue } = require('kolorist');
console.log(bgRed('This text has a red background'));
console.log(bgGreen('This text has a green background'));
console.log(bgBlue('This text has a blue background'));

Text Attributes

In addition to colors, Kolorist can apply text attributes like bold, underline, and italic. The example demonstrates how to use these attributes.

const { bold, underline, italic } = require('kolorist');
console.log(bold('This text is bold'));
console.log(underline('This text is underlined'));
console.log(italic('This text is italicized'));

Other packages similar to kolorist

FAQs

Package last updated on 22 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc